package cn.com.miao.lynx.plugin.mail.properties;

import cn.com.miao.lynx.plugin.mail.enums.MailRegion;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * MailProperties
 *
 * @title: MailProperties
 * @description:
 * @author: dengmiao
 * @create: 2020-01-10 14:12
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = MailProperties.MAIL_PREFIX)
public class MailProperties {

    /**
     * ApiBoot mail properties config prefix
     */
    public static final String MAIL_PREFIX = "lynx.mail";
    /**
     * AliYun console allocation Access Key
     */
    private String accessKey;
    /**
     * AliYun console allocation Access Secret
     */
    private String accessSecret;
    /**
     * The mail address configured in the management console.
     */
    private String accountName;
    /**
     * Use the reply address configured in the administrative console (status must be validated).
     */
    private boolean replyToAddress = true;
    /**
     * Random accounts range from 0 to 1:0 and addresses from 1.
     */
    private int addressType = 1;
    /**
     * Default From Alias
     */
    private String fromAlias = "ApiBootMail";
    /**
     * Default Tag Name
     */
    private String tagName;
    /**
     * Mail Region
     */
    private MailRegion region;
}
